#!/bin/bash



if docker images crpi-vb403qyxdijc0eq9.cn-guangzhou.personal.cr.aliyuncs.com/utlis/ubuntu:22_04_nginx_proxy_frpc | grep -q crpi-vb403qyxdijc0eq9.cn-guangzhou.personal.cr.aliyuncs.com/utlis/ubuntu; then
docker rmi -f crpi-vb403qyxdijc0eq9.cn-guangzhou.personal.cr.aliyuncs.com/utlis/ubuntu:22_04_nginx_proxy_frpc
fi

if docker images "ubuntu-22.04:nginx_proxy_frpc" | grep -q "ubuntu-22.04"; then
docker rmi -f ubuntu-22.04:nginx_proxy_frpc
 echo "镜像 $IMAGE_NAME:$IMAGE_TAG 存在来源删除"
fi

IMAGE_NAME="ubuntu-22.04"
IMAGE_TAG="nginx_proxy_frpc"

if docker images "$IMAGE_NAME:$IMAGE_TAG" | grep -q "$IMAGE_NAME"; then
    echo "镜像 $IMAGE_NAME:$IMAGE_TAG 存在"
fi

    echo "镜像 $IMAGE_NAME:$IMAGE_TAG 不存在0"










